home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / inn1.000 / inn1.4sec-linux-src.tar / inn / include / logging.h < prev    next >
C/C++ Source or Header  |  1992-10-13  |  1KB  |  36 lines

  1. /*  $Revision: 1.8 $
  2. **
  3. **  The logging levels in syslog(3) are confusing.  We use only three,
  4. **  and give them more meaningful names.  See section 2 in config.dist.
  5. */
  6. #include <syslog.h>
  7.  
  8.  
  9. /*
  10. **  2.  LOGGING LEVELS
  11. */
  12.     /* Facility innd should log under. */
  13.     /* =()<#define LOG_INN_SERVER        @<LOG_INN_SERVER>@>()= */
  14. #define LOG_INN_SERVER        LOG_NEWS
  15.     /* Facility all other programs should log under. */
  16.     /* =()<#define LOG_INN_PROG        @<LOG_INN_PROG>@>()= */
  17. #define LOG_INN_PROG        LOG_NEWS
  18.     /* Flags to use in opening the logs; some programs add LOG_PID. */
  19.     /* =()<#define L_OPENLOG_FLAGS        @<L_OPENLOG_FLAGS>@>()= */
  20. #define L_OPENLOG_FLAGS        (LOG_CONS | LOG_NDELAY)
  21.     /* Fatal error, program is about to exit. */
  22.     /* =()<#define L_FATAL        @<L_FATAL>@>()= */
  23. #define L_FATAL        LOG_CRIT
  24.     /* Log an error that might mean one or more articles get lost. */
  25.     /* =()<#define L_ERROR        @<L_ERROR>@>()= */
  26. #define L_ERROR        LOG_ERR
  27.     /* Informational notice, usually not worth caring about. */
  28.     /* =()<#define L_NOTICE        @<L_NOTICE>@>()= */
  29. #define L_NOTICE        LOG_INFO
  30.     /* A protocol trace. */
  31.     /* =()<#define L_TRACE        @<L_TRACE>@>()= */
  32. #define L_TRACE        LOG_DEBUG
  33.     /* All incoming control commands (ctlinnd, etc). */
  34.     /* =()<#define L_CC_CMD        @<L_CC_CMD>@>()= */
  35. #define L_CC_CMD        LOG_INFO
  36.